// 导入用户接口
import { login, getUserinfo, getUserDetailById } from '@/api/user'
// 导入组织架构接口
import { getDepartmentList, deleteDepartment, addDepartment, updateDepartment, getDepartments } from '@/api/departments'
// 导入员工管理接口
import {
  getEmployeesList, getEmployees, deleteEmployeeId, addEmployee,
  addEmployeeBatch, getEmployeeInfo, saveEmployeById, getEmployeeInfoBasic,
  assignEmployee
} from '@/api/employees'
// 导入角色管理接口
import { getRoleList, deleteRole, updateRole, getRoleId, addRole, assignPerm } from '@/api/role'
// 权限管理接口
import { getPermissionList, updatePermission, getPermissionDetail, addPermission, delPermission, updateRoleById } from './permission'
// 导入企业管理接口
import { getenterpriseId } from '@/api/enterprise'

/* 获取权限列表*/
export const getPermissionListAPI = getPermissionList
/* 编辑权限接口 */
export const updatePermissionAPI = updatePermission
/* 获取权限详情 */
export const getPermissionDetailAPI = getPermissionDetail
/* 新增权限 */
export const addPermissionAPI = addPermission
/* 删除权限 */
export const delPermissionAPI = delPermission
/* 根据ID修改权限 */
export const updateRoleByIdAPI = updateRoleById

/* 登录接口 */
export const loginAPI = login
/* 获取用户信息接口(不包含头像) */
export const getUserinfoAPI = getUserinfo
/* 获取用户信息接口(包含头像) */
export const getUserDetailByIdAPI = getUserDetailById

/* 获取企业组织架构接口 */
export const getDepartmentListAPI = getDepartmentList
/* 添加部门接口 */
export const addDepartmentAPI = addDepartment
/* 根据id删除部门 */
export const deleteDepartmentAPI = deleteDepartment
/* 编辑部门信息 */
export const updateDepartmentAPI = updateDepartment
/* 根据ID获取部门详情 */
export const getDepartmentsAPI = getDepartments

/* 获取员工简单列表 */
export const getEmployeesListAPI = getEmployeesList
/* 获取员工列表 */
export const getEmployeesAPI = getEmployees
/* 根据id删除员工 */
export const deleteEmployeeIdAPI = deleteEmployeeId
/* 新增员工接口 */
export const addEmployeeAPI = addEmployee
/* 批量导入员工 */
export const addEmployeeBatchAPI = addEmployeeBatch
/* 获取员工个人信息 */
export const getEmployeeInfoAPI = getEmployeeInfo
/* 修改员工信息（用户名 密码） */
export const saveEmployeByIdAPI = saveEmployeById
/* 获取员工岗位信息 */
export const getEmployeeInfoBasicAPI = getEmployeeInfoBasic
/* 给员工分配角色 */
export const assignEmployeeAPI = assignEmployee

/* 获取所有角色列表  */
export const getRoleListAPI = getRoleList
/* 根据ID删除角色  */
export const deleteRoleAPI = deleteRole
/* 根据ID删除角色  */
export const updateRoleAPI = updateRole
/* 根据ID获取角色详情  */
export const getRoleIdAPI = getRoleId
/* 新增角色  */
export const addRoleAPI = addRole
/* 给角色分配权限  */
export const assignPermAPI = assignPerm

/* 根据id查询企业  */
export const getenterpriseIdAPI = getenterpriseId